package com.itheima_01;

public class Teacher {
    public void checkScore (int score) throws ScoreException {
        if(score<0||score>100){
            //throw new ScoreException();
            throw new ScoreException("你输入的分数不对，请输入0 -100之间的分数");
        }else {
            System.out.println("分数正常");
        }
    }
}
